SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 57899: PROC SQL returns incorrect results reading from an In-Line View or an SQL View

DetailsCodeOutputHotfixAboutRate It

The SQL procedure returns incorrect results from an In-Line View or an SQL View. The incorrect results occur when the following conditions are true:

  • The view contains a column(s) created using a summary function
  • A new column is created from the summarized column(s) created in the view
  • A WHERE clause contains a Calculated reference to the column(s) created in item 2

To see an example of code that produces the incorrect and correct results, click the Full Code tab. Click the Output tab to see the incorrect and correct results.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.3 TS1M29.4 TS1M3
z/OS 64-bit9.3 TS1M29.4 TS1M3
Microsoft® Windows® for x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro x649.3 TS1M29.4 TS1M3
Microsoft Windows Server 20089.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R29.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x649.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Std9.3 TS1M29.4 TS1M3
Windows 7 Professional 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Professional x649.3 TS1M29.4 TS1M3
64-bit Enabled AIX9.3 TS1M29.4 TS1M3
64-bit Enabled HP-UX9.3 TS1M29.4 TS1M3
64-bit Enabled Solaris9.3 TS1M29.4 TS1M3
HP-UX IPF9.3 TS1M29.4 TS1M3
Linux9.3 TS1M29.4 TS1M3
Linux for x649.3 TS1M29.4 TS1M3
Solaris for x649.3 TS1M29.4 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.